#include "FileDisk.h"

FileDisk::FileDisk()
{
	root = new Folder(nullptr, L"C:", TYPE_FOLDER);
}

void FileDisk::FormatDisk()
{
	if (nullptr != root)	delete root;
	root = new Folder(nullptr, L"C:", TYPE_FOLDER);
}

PathTreeNode* FileDisk::GetRootNode()
{
	return root;
}

void FileDisk::SetRootNode(PathTreeNode* _root)
{
	root = _root;
}

FileDisk::~FileDisk()
{
	delete root;
}
